package com.kun.controller;

import com.kun.ann.EncDec;
import com.kun.dto.PostQuery;
import com.kun.util.ResponseResult;
import org.springframework.web.bind.annotation.*;


/**
 * @author kun.li
 */
@RestController
@RequestMapping("hello")
public class HelloController {


    @PostMapping("post")
    @EncDec
    public ResponseResult post(@RequestBody PostQuery postQuery) {
        System.out.println(postQuery);
        return ResponseResult.success("hello,world");
    }

}
